package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.AdminUserDetailDTO;
import cn.xd.base.domain.entity.AdminUser;
import cn.xd.base.persistence.dos.AdminUserDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(uses = ReferenceMapper.class)
public interface AdminUserDetailAssembler extends Converter<AdminUserDetailDTO, AdminUserDO> {
    AdminUserDetailAssembler INSTANCE = Mappers.getMapper(AdminUserDetailAssembler.class);

    AdminUserDetailDTO toDTO(AdminUser adminUser);
}
